package com.yuantong.xyerp.core.api.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * Created by Jianguo.Yin on 2021-06-26.
 */
@Data
@ApiModel("角色基本信息")
public class RoleDto implements Serializable {

    @ApiModelProperty(value = "角色id")
    private String id;

    @ApiModelProperty(value = "角色名称")
    private String name;

    @ApiModelProperty(value = "部门id")
    private String organizationId;

    @ApiModelProperty(value = "0-全部数据；1-部门数据；2-个人数据")
    private String dataRights;

    @ApiModelProperty(value = "角色描述，不超过200字")
    private String remarks;

    @ApiModelProperty(value = "拥有该角色的员工数量")
    private Integer staffNum;

    @ApiModelProperty(value = "0-停用；1-启用")
    private String status;

    @ApiModelProperty(value = "角色拥有的menuId")
    private List<String> menuIds;

    @ApiModelProperty(value = "最新更新时间（保存到秒）")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "创建人ID")
    private String creatorId;

}
